﻿'Description:批次工序计划类
'Copyright (c) : 通力凯顿（北京）系统集成有限公司
'Writer:YangJiang
'create Date:2018-3-27
'Rewriter:
'Rewrite Date:
Public Interface uLMSContainerWorkFlowStepIBusiness

    ''' <summary>
    ''' 获取派工准备数据
    ''' </summary>
    ''' <param name="QueryCondition"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetContainerStepDispatchData(ByVal QueryCondition As System.Collections.Generic.Dictionary(Of String, String)) As DTO.uMESProcessResult

    ''' <summary>
    ''' 插入批次工序计划数据
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function InsertContainerStepPlan(ByVal para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' 更新批次工序计划数据
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateContainerStepPlan(ByVal para As Dictionary(Of String, String)) As Boolean


    ''' <summary>
    ''' 获取当前批次下当前工艺下的所有工序  
    ''' </summary>
    ''' <param name="ContainerID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetWorkFlowStepByWorkFlowID(ByVal ContainerID As String) As DataTable

    ''' <summary>
    ''' 获取派工要求时间  add YangJiang 20180529
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetDispatcherDate(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 根据件号/批次号获取流水卡号 add zhunan 2018.11.5
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetContainernameByProductBatch(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 员工是否有权限解锁工序计划排产
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function IsEmployeeCanUnlockStepPlan(ByRef para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' 变更工序锁定状态
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function IsChangeLockStautsSuccess(ByRef para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' 查询批次各工序完成情况
    ''' </summary>
    ''' <param name="containerid"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetContainerStepFinishData(ByVal containerid As String) As DataTable
End Interface
